package com.bailiban.service;

import com.bailiban.entity.News;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author zhulang
 * @Classname NewsService
 * @Description TODO
 * @Date 2020/4/5 18:17
 */
public interface NewsService {
    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    Page<News> findAll(Integer page,Integer size);

   News findLatestNews(Integer size);
}
